package com.xuecheng.orders.feignclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value = "content-api",fallbackFactory = GetCoursePriceClientFactory.class)
public interface GetCoursePriceClient {
//    @ResponseBody
    @GetMapping("/content/r/coursepublishPrice/{courseId}")
    public Float getCoursepublishPrice(@PathVariable("courseId") Long courseId);

    @ResponseBody
    @GetMapping("/content/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);
}
